package com.bckj.fastboot.paid.api.service;

import com.bckj.fastboot.paid.api.model.PayRequest;
import com.bckj.fastboot.paid.api.model.PayResponse;
import com.bckj.fastboot.paid.api.constant.PayConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = PayConstants.SERVICE_ID, contextId = "pay", path = "pay")
public interface PayRemoteService {

    @PostMapping
    PayResponse pay(@RequestBody @Validated PayRequest request);
}
